//#ifndef RECORDWIDGET_H
//#define RECORDWIDGET_H

//#include <QWidget>
//#include <QDebug>
//namespace Ui {
//class RecordWidget;
//}

//class RecordWidget : public QWidget
//{
//    Q_OBJECT

//public:
//    explicit RecordWidget(QWidget *parent = nullptr);
//    ~RecordWidget();
//signals:
//    void sendDisWidget(QString );
//protected:
//    //事件
//    virtual void paintEvent(QPaintEvent *event);
//    virtual void showEvent(QShowEvent *event);
//    void updateDisplay();
//private slots:
//    void onHeaderClicked(int,int);
//    void on_pushButton_1_clicked();

//    void on_pushButton_2_clicked();

//    void on_radioButton_a_clicked(bool checked);

//    void on_radioButton_b_clicked();

//private:
//    Ui::RecordWidget *ui;
//    int selectrow;
//    bool m_state;
//};

//#endif // RECORDWIDGET_H
#ifndef RECORDWIDGET_H
#define RECORDWIDGET_H

#include <QWidget>
#include <QDebug>

namespace Ui {
class RecordWidget;
}

class RecordWidget : public QWidget
{
    Q_OBJECT

public:
    explicit RecordWidget(QWidget *parent = nullptr);
    ~RecordWidget();

signals:
    void sendDisWidget(QString);

public:
    void updateDisplay();  // 移到 public 区域

protected:
    virtual void paintEvent(QPaintEvent *event) override;
    virtual void showEvent(QShowEvent *event) override;

private slots:
    void onHeaderClicked(int row, int column);
    void on_pushButton_1_clicked();
    void on_pushButton_2_clicked();
    void on_radioButton_a_clicked(bool checked);
    void on_radioButton_b_clicked();

private:
    Ui::RecordWidget *ui;
    int selectrow;
    bool m_state;  // true=warehousing，false=delivery
};

#endif // RECORDWIDGET_H

